// ==UserScript==
// @name         huya
// @namespace    http://tampermonkey.net/
// @version      0.24
// @description  try to take over the world!
// @author       You
// @match        https://www.huya.com/g/*
//@grant        none


// ==/UserScript==

(function () {
    'use strict';
    window.onload = function () {
        aa();
    }
    document.onmouseup = function () {
        aa();
    }
    function aa() {
        $("#login-userAvatar").remove()


        var select1;
try{

  select1= "body > div.wrapper > div > div > div.list-area > div > a:nth-child(n) > div > div.g-pic > div > img";
       
       $(select1).each(function(){
           $(this).attr("src", $(this).attr("src").replace($(this).attr("src").split('?')[1], "x-oss-process=image/resize,fixed,w_3000,limit_0/crop,x_0,y_0,w_580,h_50,g_ne"))
       })
    


}catch(e){}
       try{
select1="#js-live-list > li:nth-child(n) > a.video-info.new-clickstat > img";
       $(select1).each(function(){
           $(this).attr("src", $(this).attr("src").replace($(this).attr("src").split('?')[1], "x-oss-process=image/resize,fixed,w_3000,limit_0/crop,x_0,y_0,w_580,h_50,g_ne"))
       })

       }catch(e){}



    }





})();